<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="gif captcha">
        <title>gif captcha</title>

    </head>
    <body>
        <div>
            演示动态验证码：
            <a onclick="javascript:changImg();" href="javascript:void(0);" id="verifyCodeA">
                <img id="servletImg" src="gifCaptcha" alt="UIFuture验证码"/>
            </a>
        </div>
        <script src="../js/jquery.min.js"></script>
        <script>
            var path = "${pageScope.basePath}";
            function changImg() {
                var a = document.getElementById("verifyCodeA");
                var time = new Date().getTime();
                var src = path + "gifCaptcha?" + time;
                a.innerHTML="<img id='servletImg' src="+src+" alt='UIFuture验证码'/>";
            }
        </script>
    </body>
</html>
